<style>
	label{width:120px!important;}
</style>
<div id="box">
  <form action="<?php echo base_url(); ?>admin/activity/<?php if(isset($_GET['id'])) echo "update?id=".$_GET["id"];else echo "insert";?>" method="post" enctype="multipart/form-data">
    <fieldset id="personal">
      <legend>&nbsp;&nbsp;Edit Activity&nbsp;&nbsp;</legend>
      <label>ID : </label>
      <?php if(count($detail)>0) echo $detail['id'];else echo "ID"; ?>
      <br>
      <label>Name : </label>
      <input name="name" type="text" value="<?php echo $detail['name']; ?>" />
      <br>
      <label>Address : </label>
      <input name="address" type="text" value="<?php echo $detail['address']; ?>" />
      <br>
      <label>Promotion : </label>
      <?php 
										$fck = new FCKeditor('promotion');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['promotion'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br>
      <label>Category : </label>
      <input name="category" type="text" value="<?php echo $detail['category']; ?>" />
      <br>
      <label>Description : </label>
      <?php 
										$fck = new FCKeditor('description');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['description'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br>
      <label>Destination : </label>
      <input type="text" name="destination" value="<?php echo $detail['destination'] ?>" />
      <br>
      <label>Provide : </label>
      <select name="provide">
      	<option value="0" <?php if($detail['provide']=='0') echo "selected";?>>Provide</option>
      	<option value="Bagan" <?php if($detail['provide']=='Bagan') echo "selected";?>>Bagan</option>
      	<option value="Inle" <?php if($detail['provide']=='Inle') echo "selected";?>>Inle</option>
      	<option value="Mandalay" <?php if($detail['provide']=='Mandalay') echo "selected";?>>Mandalay</option>
      	<option value="Yangon" <?php if($detail['provide']=='Yangon') echo "selected";?>>Yangon</option>
   	  </select>	
      <br>
      <label>Avatar : </label>
      <input name="fuavatar" type="file" />
      <img src="<?php echo $detail["avatar"];?>" width="150"/><br />

      <label>Overview : </label>
      <br />
      <?php 
										$fck = new FCKeditor('overview');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['overview'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Whouse : </label>
      <br />
      <?php 
										$fck = new FCKeditor('whouse');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['whouse'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Detail : </label>
      <br />
      <?php 
										$fck = new FCKeditor('detail');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['detail'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Policy : </label>
      <br />
      <?php 
										$fck = new FCKeditor('policy');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['policy'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Type : </label>
      <select name="typeofactivity">
        <option value="0">Type of Activity</option>
        <option value="Day Tour & Sightseeing" <?php if($detail['typeofactivity']=='Day Tour & Sightseeing') echo "selected";?>>Day Tour & Sightseeing</option>
        <option value="Spa & Massage" <?php if($detail['typeofactivity']=='Spa & Massage') echo "selected";?>>Spa &amp; Massage</option>
        <option value="Cultural touch" <?php if($detail['typeofactivity']=='Cultural touch') echo "selected";?>>Cultural touch</option>
        <option value="Shopping" <?php if($detail['typeofactivity']=='Shopping') echo "selected";?>>Shopping</option>
        <option value="Active" <?php if($detail['typeofactivity']=='Active') echo "selected";?>>Active</option>
      </select>
      <br/>
      <label>Recommendations : </label>
      <select name="recommendations">
        <option value="0">Choose Recommendations</option>
        <?php for($i=1;$i<=30;$i++){?>
			<option value="<?php echo $i ?>" <?php if($detail['recommendations']==$i) echo "selected";?>><?php echo $i ?></option>
		<?php }?>
      </select>
      <br/>
      <label>Status : </label>
      <select name="status">
        <option value="0">Choice Status</option>
        <option value="1" <?php if($detail['status']==1) echo "selected"; ?>>Highlights</option>
        <option value="2" <?php if($detail['status']==2) echo "selected"; ?>>Normal</option>
        <option value="3" <?php if($detail['status']==3) echo "selected"; ?>>Hide</option>
      </select>
      <br />
      <div style="float:left;padding-top:5px;padding-left:40%;">
        <input type="reset" value="Reset">
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="Submit">
      </div>
    </fieldset>
  </form>
</div>
